﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;
using javanet_demo.demo;

namespace javanet_demo.Models
{

    public class ProjectListModel
    {
        public List<Project> projects { get; set; }
        public object selectedProject { get; set; }
    }

    public class ChangeProjectModel
    {
        [Required]
        [Display(Name = "Code")]
        public string Code { get; set; }

        [Required]
        [Display(Name = "Short name")]
        public string NameShort { get; set; }

        [Display(Name = "Long name")]
        public string NameLong { get; set; }

        public List<Milestone> milestones { get; set; }

        public Project selectedProject { get; set; }
    }

    public class ChangeMilestoneModel
    {
        [Required]
        [Display(Name = "Code")]
        public string Code { get; set; }

        [Required]
        [Display(Name = "Name")]
        public string Name { get; set; }

        [Display(Name = "Date")]
        [DataType(DataType.Date)]
        public DateTime Date { get; set; }

        public Project selectedProject { get; set; }

    }

    
}
